﻿using MongoDB.Driver;
using SimpleInjector;

namespace Sustainalytics.ClientDW.Synchronization.SyncHbaseData
{
    public class CollectionFactory
    {
        private readonly Container _container;

        public CollectionFactory(Container container)
        {
            _container = container;
        }

        public IMongoCollection<T> Get<T>() => _container.GetInstance<IMongoCollection<T>>();
    }
}
